package com.shenjinzheng.merchant;

import com.shenjinzheng.merchant.entity.MerchantInfo;
import com.shenjinzheng.merchant.entity.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "robot-merchant-service",
        value = "robot-merchant-service")
public interface MerchantClient {

    @PostMapping("merchantInfoApi")
    boolean saveMerchant(@RequestBody MerchantInfo merchantInfo);

    @PostMapping("storeApi")
    boolean saveStore(@RequestBody Store store);
}
